import Vue from 'vue'
import Router from 'vue-router'
import Index from '../components/admin/Index.vue'
import Login from '../components/admin/Login.vue'
import UserLogin from '../components/wx/UserLogin.vue'
import Shop from '../components/admin/Shop.vue'
import Discount from '../components/admin/Discount.vue'
import UserMessage from '../components/wx/UserMessage.vue'
import WxZy from '../components/wx/WxZy.vue'
import WxIndex from '../components/wx/WxIndex.vue'
import WxZydh from '../components/wx/WxZydh.vue'
import WxShopping from '../components/wx/WxShopping.vue'
import Xifa from '../components/wx/Xifa.vue'
import XiangShui from '../components/wx/XiangShui.vue'
import HuFu from '../components/wx/HuFu.vue'
import ShouBiao from '../components/wx/ShouBiao.vue'
import XiangBao from '../components/wx/Xiangbao.vue'
import MeiZhuang from '../components/wx/MeiZhuang.vue'
import YaWang from '../components/wx/YaWang.vue'
import MeiShi from '../components/wx/MeiShi.vue'
import GouMai from '../components/wx/GouMai.vue'
import Zy from '../components/admin/Zy.vue'
import Kehu from '../components/admin/Kehu.vue'
import HuiYuan from '../components/admin/HuiYuan.vue'
import NoHuiYuan from '../components/admin/NoHuiYuan.vue'
import DingDan from '../components/admin/DingDan.vue'
Vue.use(Router);
export default new Router({
  routes: [
    {path: '/index', name: 'Login', component: Login},
    {path: '/login', name: 'Index', component: Index,children:[
      {path: '/zhuye', name: 'Zy', component: Zy},
      {path: '/kehu', name: 'Kehu', component: Kehu},
      {path: '/shop', name: 'Shop', component: Shop},
      {path: '/huiyuan', name: 'HuiYuan', component: HuiYuan},
      {path: '/nhuiyuan', name: 'NoHuiYuan', component: NoHuiYuan},
      {path: '/discount', name: 'Discount', component: Discount},
      {path: '/dingdan', name: 'DingDan', component: DingDan},
    ]},
    {path: '/', name: 'UserLogin', component: UserLogin},
    {path: '/usermessage', name: 'UserMessage', component: UserMessage},
    {path: '/wxindex', name: 'WxIndex', component: WxIndex,children:[
      {path: '/', name: 'WxZydh', component: WxZydh,children:[
        {path: '/xifa/:id(\\d+)', name: 'Xifa', component: Xifa},
        {path: '/xiangshui/:id(\\d+)', name: 'XiangShui', component: XiangShui},
        {path: '/hufu/:id(\\d+)', name: 'HuFu', component: HuFu},
        {path: '/shoubiao/:id(\\d+)', name: 'ShouBiao', component: ShouBiao},
        {path: '/xiangbao/:id(\\d+)', name: 'XiangBao', component: XiangBao},
        {path: '/meizhuang/:id(\\d+)', name: 'MeiZhuang', component: MeiZhuang},
        {path: '/yawang/:id(\\d+)', name: 'YaWang', component: YaWang},
        {path: '/meishi/:id(\\d+)', name: 'MeiShi', component: MeiShi},
        {path: '/goumai/:id(\\d+)', name: 'GouMai', component: GouMai},
        {path: '/', name: 'WxZy', component: WxZy},
        {path: '/wxshopping', name: 'WxShopping', component: WxShopping}

      ]},

      // {path: '/wxprivate', name: 'WxPrivate', component: WxPrivate},

    ]},
    ]
})
